﻿<!DOCTYPE html>
<!-- saved from url=(0113)https://djpuzj.17juying.net/pay_cjg.html?oid=a5OCccs7HamQIG&sign=75fbeec50131da4c200c22ba2c58b08b&t=1557119249480 -->
<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <!-- <link rel="stylesheet" type="text/css" href="./swiper.min.css"> -->
  <link rel="stylesheet" type="text/css" href="http://image.barchain.net/qr_alipay_3/qr_alipay3_process.css">
  <link rel="stylesheet" type="text/css" href="http://image.barchain.net/qr_alipay_3/qr_alipay3_pay1.css" media="screen">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/css/swiper.min.css">

  <title>请复制链接到支付宝聊天窗口打开</title>
  <style type="text/css">
    .wrapper {
      position: relative;
    }

    #input {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      z-index: -10;
    }

    .btn {
      margin: 0% auto;
      display: table;
    }

    .pic {
      padding-top: 3%;
      width: 96%;
      padding-left: 4%;

    }

    pre {
      white-space: pre-wrap;
      word-wrap: break-word;
      background-color: rgb(252, 233, 233);
    }

    .btn-lg {
      margin-top: 15px;
    }

    .btn-success {
      color: #fff;
      background-color: red;
      border-color: #990033;
    }

    .alert-success {
      color: #FFFFFF;
      background-color: red;
      border-color: #990033;
    }

    .swiper-container {
      width: 100%;
      height: auto;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;
    }

    .swiper-slide img {
      width: 100%;
      height: auto;
    }

    .pop-home {
      width: 100%;
      height: 620px;
      background: #373a3d;
    }

    .am-process {
      background: #373a3d;
      text-align: left;
    }

    .number {
      width: 24px;
      height: 24px;
      background-color: #108ee9;
      color: #ffffff;
      border-radius: 50%;
      text-align: center;
      line-height: 24px;
      position: absolute;
      z-index: 8;
    }

    .number-color-ff {
      color: #fff !important;
    }

    .ico-1 {
      background: url("http://image.barchain.net/qr_alipay_3/qr_alipay3_logo_alipay.jpg") no-repeat;
      background-size: cover;
    }

    .qrcode {
      width: 160px;
      height: 160px;
      margin-left: calc(50% - 80px);
      margin-top: 14px;
      margin-bottom: 14px;
      z-index: 99999999999;
    }

    #hidden-bt {
      color:cornflowerblue;
      font-size:17px;
      border: 1px solid cornflowerblue;
      border-radius: 4px;
      margin-top: 20px;
      margin-bottom: 10px;
    }
  </style>

</head>

<body>
  <div id="paydemo" class="body">
    <h1 class="mod-title">
      <span class="ico_log ico-1"></span>
    </h1>
    <div class="mod-ct">
      <div class="order"
        style="font-size:25px;color:#f60;margin:8px;padding-top: 15px;padding-bottom: 10px;margin-bottom:10px;">
        <!-- 修改地方1 -->
        <!-- <div id="money"></div> -->
        <div id="money">{{ real_amount }} </div>
        <div id="get_url" style="display: none">{{ url }}</div>
        <input id="text" type="text" value="http://jindo.dev.naver.com/collie" style="width:80%;display: none" />
        <div class="qrcode" id="qrcode"></div>
        <!-- 修改地方2: 不显示订单号，增加文字描述 -->
        <div id="cardNo" style="color:cornflowerblue;font-size:17px;">请放心转账</div>
      </div>
      <div class="container">
        <div class="alert alert-success" role="alert" style="padding: 5px;margin-bottom:10px">
          <p>点击复制按钮，把复制内容发给任意支付宝好友。在聊天框里打开链接支付</p>
        </div>
        <div>
        </div>
        <div class="url-block">
          <pre id="memo"></pre>
        </div>
        <div class="btn-block">
          <button class="btn btn-lg btn-success" id="copyBtn" style="padding: 10px 12px; font-weight: 800;">
            复制支付链接
          </button>
        </div>
        <button id="hidden-bt">点击查看支付教程</button>
        <!-- <div class="qrcode" id="qrcode"></div> -->
        <div id="teach-pay">
          <p style="color: red">左右滑动查看支付教程</p>
        <!-- 修改地方3:修改轮播图文字描述 / cdn的图片 css js 链接-->
        <div
          class="swiper-container swiper-container-initialized swiper-container-horizontal swiper-container-autoheight swiper-container-ios">
          <div class="swiper-wrapper"
            style="height: 679px; transform: translate3d(-424px, 0px, 0px); transition-duration: 0ms;">
            <div class="swiper-slide swiper-slide-prev" style="width: 394px; margin-right: 30px;">
              <div class="pop-home">
                <div class="am-process">
                  <div class="am-process-item pay">
                    <p class="number">1</p>
                    <div class="am-process-content">
                      <div class="am-process-main number-color-ff">点击复制支付链接</div>
                      <div class="am-process-brief">
                        <p style="color:#fff">请点击<span style="color:red;">复制支付链接</span>，然后打开你的<span
                            style="color:red;">支付宝</span></p>
                      </div>
                    </div>
                    <div class="am-process-down-border"></div>
                  </div>
                  <div class="am-process-item pay">
                    <p class="number">2</p>
                    <div class="am-process-content">
                      <div class="am-process-main number-color-ff">发送链接</div>
                      <div class="am-process-brief">
                        <p style="color:#fff">选择<span style="color:red;">任意</span>一个<span
                            style="color:red;">支付宝好友</span>(可以加自己为好友，发送给自己)，给他发送你<span style="color:red;">复制的支付链接</span></p>
                      </div>
                    </div>
                    <div class="am-process-up-border"></div>
                    <div class="am-process-down-border"></div>
                  </div>
                  <div class="am-process-item pay">
                    <p class="number">3</p>
                    <div class="am-process-content">
                      <div class="am-process-main number-color-ff">点击发送的链接</div>
                      <div class="am-process-brief">
                        <p style="color:#fff">再点击你发送的支付链接，然后跳转到支付界面，再完成付款</p>
                        <p>( <span style="color:red;">请务必点击链接，而不是直接给您的好友转账</span> )</p>
                      </div>
                    </div>
                    <div class="am-process-up-border"></div>
                  </div>
                </div>
                <h1 style="color:#FFFFFF">***详细<span style="color:red;">图文教程</span>请向左滑动页面***</h1>
                <!-- <p style="color:red">不要重复支付</p> -->
                <p style="color:red">不直接给好友(自己)转账</p>
                <p style="color:red">不修改金额</p>
                <p style="color:red">不重复转账</p>
              </div>
              <!-- <img src="img/0.png"> -->
            </div>
            <div class="swiper-slide swiper-slide-active" style="width: 394px; margin-right: 30px;"><img
                src="http://image.barchain.net/qr_alipay_3/qr_alipay3_1.png"></div>
            <div class="swiper-slide swiper-slide-next" style="width: 394px; margin-right: 30px;"><img
                src="http://image.barchain.net/qr_alipay_3/qr_alipay3_2.png"></div>
            <div class="swiper-slide" style="width: 394px; margin-right: 30px;"><img src="http://image.barchain.net/qr_alipay_3/qr_alipay3_3.png"></div>
            <div class="swiper-slide" style="width: 394px; margin-right: 30px;"><img src="http://image.barchain.net/qr_alipay_3/qr_alipay3_4.png"></div>
            <div class="swiper-slide" style="width: 394px; margin-right: 30px;"><img src="http://image.barchain.net/qr_alipay_3/qr_alipay3_5.png"></div>
            <div class="swiper-slide" style="width: 394px; margin-right: 30px;"><img src="http://image.barchain.net/qr_alipay_3/qr_alipay3_6.png"></div>
          </div>
          <div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets"><span
              class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="Go to slide 1"></span><span
              class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button"
              aria-label="Go to slide 2"></span><span class="swiper-pagination-bullet" tabindex="0" role="button"
              aria-label="Go to slide 3"></span><span class="swiper-pagination-bullet" tabindex="0" role="button"
              aria-label="Go to slide 4"></span><span class="swiper-pagination-bullet" tabindex="0" role="button"
              aria-label="Go to slide 5"></span><span class="swiper-pagination-bullet" tabindex="0" role="button"
              aria-label="Go to slide 6"></span><span class="swiper-pagination-bullet" tabindex="0" role="button"
              aria-label="Go to slide 7"></span></div>
          <div class="swiper-button-next" tabindex="0" role="button" aria-label="Next slide" aria-disabled="false">
          </div>
          <div class="swiper-button-prev" tabindex="0" role="button" aria-label="Previous slide" aria-disabled="false">
          </div>
          <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
        </div>
        </div>
      </div>
    </div>
  </div>


  <script src="http://image.barchain.net/qr_alipay_3/qr_alipay3_jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/js/swiper.min.js"></script>
  <script src="http://image.barchain.net/qr_alipay_3/qr_alipay3_jquery.base64.js"></script>
  <script type='text/javascript' src='http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js'></script>
  <script type="text/javascript" src="http://image.barchain.net/image/qrcode_7niu.js"></script>

  <script>
    var swiper = new Swiper('.swiper-container', {
      autoHeight: true,
      spaceBetween: 30,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });
  </script>
  <script>
    function copy(message) {
      var input = document.createElement("input");
      input.value = message;
      document.body.appendChild(input);
      input.select();
      input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
      // document.body.removeChild(input);
      alert("复制成功", "text");
    }
  </script>
  <script>
    var payInfo = "";
    var payMoney = "";
    $("#copyBtn").on("click", function () {
      var copyTxt = '若提示风险或跳转至首页，请关闭支付宝后重新点击支付链接.订单金额: {amount}   【点击付款>>】付款链接:  {url}';
      payMoney = $("#money").text();
      payInfo = $("#get_url").text();
      copyTxt = copyTxt.replace("{amount}", payMoney);
      copyTxt = copyTxt.replace("{url}", payInfo);
      copy(copyTxt);
      console.log(payMoney,payInfo,copyTxt)
    })

    // 新增qrcode
    var qrcodeText = $("#get_url").text();
    // qrcodeText = 'https://www.jianshu.com/p/8cedd68d30ad'
    var flag = true;
    $('#teach-pay').hide();
    $('#hidden-bt').click(function(){
      if(flag == true){
        $('#teach-pay').show();
        $('#hidden-bt').text('收起');
        flag = false
      }else{
        $('#teach-pay').hide();
        $('#hidden-bt').text('点击查看支付教程');
        flag = true
      }
    })

  </script>

<script type="text/javascript">
  var qrcode = new QRCode(document.getElementById("qrcode"), {
    width : 160,
    height : 160
  });

  function makeCode () {
    var elText = document.getElementById("text");

    if (!elText.value) {
      alert("Input a text");
      elText.focus();
      return;
    }

    qrcode.makeCode(qrcodeText);
  }

  makeCode();

  $("#text").
    on("blur", function () {
      makeCode();
    }).
    on("keydown", function (e) {
      if (e.keyCode == 13) {
        makeCode();
      }
    });
  </script>
</body>

</html>